Avoid compiler warnings
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 May 2019 16:26:19 +0000 (16:26 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:17 +0000 (20:25 +0000)
Avoid priv being flagged as unused on win32.

gtk/gtkwindow.c

index 0d422f641455f5875cd8fe5487d8427e7c287ef2..5cb64664d880482cc029cdde987736130a927a88 100644 (file)
@@ -9555,7 +9555,8 @@ gtk_window_export_handle (GtkWindow               *window,
     }
 #endif
 
-  g_warning ("Couldn't export handle, unsupported windowing system");
+  g_warning ("Couldn't export handle for %s surface, unsupported windowing system",
+             G_OBJECT_TYPE_NAME (priv->surface));
 
   return FALSE;
 }
@@ -9569,8 +9570,12 @@ gtk_window_unexport_handle (GtkWindow *window)
   if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
     {
       gdk_wayland_surface_unexport_handle (priv->surface);
+      return;
     }
 #endif
+
+  g_warning ("Couldn't unexport handle for %s surface, unsupported windowing system",
+             G_OBJECT_TYPE_NAME (priv->surface));
 }
 
 static void